from django.conf.urls.defaults import *

from django.contrib import admin
import settings

admin.autodiscover()

urlpatterns = patterns('',
    # Feed Manager App
    (r'^jm/', include('jm_web.job_manager.urls')),

    (r'^accounts/login/$', "django.contrib.auth.views.login", {"template_name": "login.html"}),
    (r'^accounts/logout/$', "django.contrib.auth.views.logout", {"next_page":"/jm/index"}),

    (r'^static/(?P<path>.*)$', 'django.views.static.serve',
            {'document_root': settings.STATIC_DOC_ROOT}),
    (r'^images/(?P<path>.*)$', 'django.views.static.serve',
            {'document_root': settings.IMAGES_ROOT}),
    # Administration    
#    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^admin/', include(admin.site.urls)),
)
